package com.ms.p2p.utils;

import com.ms.p2p.entity.loan.Loan;
import com.ms.p2p.entity.loan.LoanDueIn;
import com.ms.p2p.entity.loan.LoanTenderRecord;

public interface LoanDueInInfo {
    /**
     * 等额本息 status 1
     * */
    public LoanDueIn equalPrincipalAndInterest(Loan borrow, LoanTenderRecord borrowTender, int i,String ip);

    /***
     *
     * 一次性还本付息  status 0
     */
    public LoanDueIn lumpSumDebt(Loan borrow, LoanTenderRecord borrowTender,String ip);

    /***
     * 等本等息（不提前还款）       status 4
     * 等本等息（提前还款一个月）   status 5
     * 等本等息（提前还款两个月）   status 6
     */
    public LoanDueIn equalInstallmentPayment(Loan borrow, LoanTenderRecord borrowTender, int order, String dueinTime,String ip);

    /***
     *
     * 先息后本 status 3
     */
    public LoanDueIn FirstCouponLaterEdition(Loan borrow, LoanTenderRecord borrowTender, int i,String ip);

}
